import {request} from '../utils/request.axios';

export const login = ({
  userName,
  password,
  ifRemember='no'
}) => {
  return request(`/hkai-admin/api/rest/ai/v1.0/login`, {
    method: 'POST',
    data: {
      userName,
      password,
      ifRemember
    }
  },{
    errorTitle: '登录'
  });
};